﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 63px;
        }
        .style2
        {
            width: 158px;
        }
        .style3
        {
            width: 63px;
            height: 26px;
        }
        .style4
        {
            width: 158px;
            height: 26px;
        }
        .style5
        {
            height: 26px;
        }
        .auto-style1 {
            width: 424px;
            height: 26px;
        }
        .auto-style2 {
            width: 424px;
        }
        .auto-style3 {
            width: 183px;
            height: 26px;
        }
        .auto-style4 {
            width: 183px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 583px;border:2px solid #CC0099;">
        <h2 style="color: #CC0099; width: 295px; margin-left: 95px;">Fpt-Aptech</h2>
        <div style="height: 32px; text-align:center">
            <asp:DropDownList ID="DropDownList1" runat="server" Height="19px" Width="111px">
                <asp:ListItem>ID</asp:ListItem>
                <asp:ListItem>Name</asp:ListItem>
            </asp:DropDownList>
&nbsp;
            <asp:TextBox ID="txtSearch" runat="server" Height="18px" Width="162px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnSearch" runat="server" BackColor="Black" ForeColor="White" Text="Search" Width="80px" OnClick="btnSearch_Click" />
        </div>
        <div style="width: 502px; overflow-y: scroll; scrollbar-arrow-color:AppWorkspace" >
            <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                BorderColor="#999999" BorderWidth="1px" CellPadding="3" ForeColor="Black" 
                GridLines="Vertical" AutoGenerateSelectButton="True" BorderStyle="Solid"  Width="385px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" style="margin-left: 92px">
                <AlternatingRowStyle BackColor="#CCCCCC" />
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" 
                    HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
        </div>
        
            <table style="width:84%; height: 140px; margin-left: 92px;">
                <tr>
                    <td class="auto-style3">
                        ID :</td>
                    <td class="auto-style1">
                        <asp:TextBox ID="txtID" runat="server" Width="262px"></asp:TextBox>
                    </td>
                    <td class="style5">
                    </td>
                </tr>
                <tr>
                    <td class="auto-style4">
                        Name :</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtName" runat="server" Width="263px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style4">
                        Address :</td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtAddress" runat="server" Width="261px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style4">
                        &nbsp;</td>
                    <td class="auto-style2">
                        <asp:Button ID="btnAdd" runat="server" Text="Add new" Width="77px" 
                            onclick="btnAdd_Click" BackColor="Black" ForeColor="White" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnupdate" runat="server" BackColor="Black" ForeColor="White" Text="Update" Width="76px" OnClick="btnupdate_Click" />
&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnDelete" runat="server" BackColor="Black" ForeColor="White" Text="Delete" Width="80px" OnClick="btnDelete_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>


    </div>
    </form>
</body>
</html>
